package com.pqc.tbk.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class CallbackController {
	/**
	 * 未校验安全性
	 * 
	 * @param top_appkey
	 * @param top_parameters
	 * @param top_session
	 * @param top_sign
	 * @return
	 */
	@RequestMapping("callback")
	public String callback(final String top_appkey,
			final String top_parameters, final String top_session,
			final String top_sign, final HttpServletRequest request) {
		System.out.println(top_parameters);
		request.getSession().setAttribute("top_session", top_session);
		return "redirect:/admin/report";
	}

	@RequestMapping("autologin")
	public String autologin() {

		return "";
	}
}
